package com.chouxiaozi.wechatpublic.handle;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.weixin4j.model.message.OutputMessage;
import org.weixin4j.model.message.normal.TextInputMessage;
import org.weixin4j.model.message.output.TextOutputMessage;
import org.weixin4j.spi.DefaultNormalMessageHandler;

/**
 * 消息处理器
 * 
 */
public class CustomNormalMessageHandler extends DefaultNormalMessageHandler {
	
	static Logger logger = LoggerFactory.getLogger(CustomNormalMessageHandler.class);


	
	@Override
	public OutputMessage textTypeMsg(TextInputMessage msg) {
		TextOutputMessage out = new TextOutputMessage();
        out.setContent("你说?"+msg.getContent());
		return out;
	}
	
	
}
